<%-- 
    Document   : Update
    Created on : Oct 26, 2014, 4:03:38 PM
    Author     : user
--%>

<%@page import="java.io.File"%>
<%@page import="org.apache.commons.io.FileUtils"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body background="image.jpg">
        <h1> ENSURING PRIVACY AND DATA FRESHNESS OF SHARED DATA IN CLOUD </h1>
        <center>
      <%
      String file_name=request.getParameter("file_name");
      FileUtils.copyFile(new File(file_name), new File(file_name.replace("main","sub")));
        %>
        File has been updated
        
        <a href="Login.jsp">LogOut</a>
        </center>
    </body>
</html>
